GSOAP=/home/shared/latihan/qt/gsoap/gsoap-linux-2.2.3/soapcpp2
SOAPH=stdsoap2.h
SOAPCPP=stdsoap2.cpp
CC=gcc
CPP=g++
LIBS=-L../libs
COFLAGS=-O2 -g
CWFLAGS=-Wall
CIFLAGS=-I../.. -I../include
SNMPFLAGS=-I/home/shared/latihan/netdisc/snmp++/include -I/home/shared/latihan/netdisc/snmp++/src
SNMPLIBS=-L/home/shared/latihan/netdisc/snmp++/lib -L/home/shared/latihan/netdisc/crypt -lsnmp++ -ltomcrypt -lpthread
CMFLAGS=
CFLAGS= $(CWFLAGS) $(COFLAGS) $(CIFLAGS) $(CMFLAGS) -I/usr/include/mysql -DBIG_JOINS=1 -fno-strict-aliasing -DUNIV_LINUX -Wl,-Bsymbolic-functions -rdynamic -L/usr/lib/mysql -lmysqlclient $(SNMPFLAGS) $(SNMPLIBS)


all:		ems
ems:	ck.h ems.cpp $(SOAPH) $(SOAPCPP)
		$(GSOAP) ck.h
#g++ -g -Wall -I../include -I../src  -o snmpDiscover.o -c snmpDiscover.cpp
#g++ snmpDiscover.o -o snmpDiscover -L../lib -lsnmp++ -L../../crypt -ltomcrypt -g -Wall -I../include -I../src  -lpthread

		$(CPP) -DWITH_COOKIES $(CFLAGS) -o ems ems.cpp soapC.cpp soapServer.cpp $(SOAPCPP) ../libs/socket.cpp $(LIBS)
clean:
		rm -f *.o soapH.h soapStub.h soapC.cpp soapC.c soapClient.cpp soapClient.c soapServer.cpp soapServer.c soap*Proxy.h
distclean:
		rm -f *.o *.wsdl *.xsd *.xml *.nsmap *.log soapH.h soapStub.h soapC.cpp soapC.c soapClient.cpp soapClient.c soapServer.cpp soapServer.c soap*Proxy.h ckclient ems
